// import './assets/main.css'
import '@/styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
// 引入懒加载插件
import { lazyLoad } from './directives/imgdex'
import App from './App.vue'
import router from './router'
import persist from 'pinia-plugin-persistedstate'
import { componentsPlugin } from './components/index'
const app = createApp(App)
app.use(createPinia().use(persist))
app.use(router)

app.mount('#app')
// 注册懒加载插件
app.use(lazyLoad)
// 注册全局组件
app.use(componentsPlugin)
